/**
 *
 * Created by 61741 on 2018/1/21.
 */



(function ($, window, pluginName) {
    if (!$) {
        console.error("jQuery lib not import!");
        return -1;
    }

    if (typeof $.fn.off == 'undefined' && typeof $.fn.die != 'undeinfed') {
        $.fn.off == $.fn.die;
    }

    if (typeof $.fn.on == 'undefined' && typeof $.fn.live != 'undeinfed') {
        $.fn.on == $.fn.live;
    }




    window.initEdit = function(){
        if (typeof  editCallBack != "undefined") {
            if ($(".edit_able").length > 0) {
                console.log("found click edit target elements!%o", $(".edit_able"));
            }
            $(".edit_able").clickEditVal(editCallBack)
        }

        console.log("click editable plugin initialed");
    }


    $(document).ready(function () {
        window.initEdit();
    })

})(jQuery, window, 'clickEditAble');

